home *** CD-ROM | disk | FTP | other *** search
- Path: odin.visigenic.com!news
- From: Tim O'Neil <toneil@visigenic.com>
- Newsgroups: comp.lang.c
- Subject: Re: [Q]Is there any API that move a directory to another (drive 's) directory ?
- Date: Thu, 22 Feb 1996 09:58:27 +0000
- Organization: Visigenic Software, Inc.
- Message-ID: <312C3E43.2C06@visigenic.com>
- References: <312BCF42.6629@star.lgsw.re.kr> <21FEB199622562883@erich.triumf.ca>
- NNTP-Posting-Host: vsi48.visigenic.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- > Is an API some windoze thing??
-
- An API is any realated group of functions.
-
- > The _only_ way I can think of to move files (or a directory tree) from one
- > drive to another is to copy them. Under MS-DOS, you can move files between
- > directories _on_the_same_drive_ by messing with directory info, and not
- > actually moving the data, but this clearly won't work to actually transfer the
- > data to another drive.
-
- Write a batch file that takes two arguments (source and target directory),
- call it 'mv', after the unix mv command, have it perform a copy and then a deltree.
-
- > You might want to ask this question in a group related to your platform, since
- > it doesn't seem to be a C question. (perhaps try
- > comp.os.ms-windows.programmer.misc, if I guessed right.)
-
- Agreed, but what the heck. Its a minor enough question to answer.
-
- --
- -Tim
- "It is by caffeine alone I set my mind in motion. It is by the beans of
- Java that the thoughts aquire speed, the hands aquire shakes, the shakes
- become a warning. It is by caffeine alone I set my mind in motion."
-